<?php


namespace Mazentop\DiscountPrice\Model;


use Magento\Framework\App\Cache\Type\FrontendPool;
use Magento\Framework\Cache\Frontend\Decorator\TagScope;

class ProductCache extends  TagScope
{
    const TYPE_IDENTIFIER = '%product_id%';
    const CACHE_TAG = 'product_tag';
    /**
     * @param FrontendPool $cacheFrontendPool
     */
    public function __construct(FrontendPool $cacheFrontendPool)
    {
        parent::__construct(
            $cacheFrontendPool->get(self::TYPE_IDENTIFIER),
            self::CACHE_TAG
        );
    }
}